﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;

namespace GranitePackageSystem.Web.GranitePackagingSystem
{
    public class fNode
    {
        public bool isFile { get; set; }
        public string Name { get; set; }
        public FileAttributes FileProperties { get; set; }
        private ObservableCollection<fNode> childFNodeValue = new ObservableCollection<fNode>();
        public ObservableCollection<fNode> ChildFNodes
        {
            get
            {
                return childFNodeValue;
            }
            set
            {
                childFNodeValue = value;
            }
        }
        public fNode() { }
        public fNode(string name, FileAttributes fileProperties, bool isFile)
            : this()
        {
            this.Name = name;
            this.FileProperties = fileProperties;
            this.isFile = isFile;
        }
    }
}